/* Experience imports */
import com.d2rv.skybox.*;
import com.d2rv.settings.*;
import com.d2rv.vrpn.*;
import com.d2rv.collision.*;
import com.d2rv.offscreen.*;
import com.d2rv.user.*;
import com.d2rv.experience.*;
import com.d2rv.guide.*;
import com.d2rv.light.*;
import com.d2rv.camera.*;
import com.d2rv.model.*;
import com.d2rv.skybox.*;

/* Dependencies */
import vrpn.*;
import controlP5.*;
import saito.objloader.*;
import codeanticode.glgraphics.*;
import processing.opengl.*;

/* Experience instance */
Experience experience;

// No goal at the beginning
boolean goal = false;

// No 3D by default
int mode = 0;

/**
* Fullscreen mode
*/
public void init() {
  frame.removeNotify(); 
  frame.setUndecorated(true); 
  frame.addNotify(); 
  super.init();
}

void setup() {
  size(2*screenWidth, screenHeight, GLConstants.GLGRAPHICS);
  experience = new Experience(this);
  frameRate(60);
}

void draw() { 
  background(0);
  experience.draw(this, mode);
  key_pressed();
}

